
/**
 * 提交变更信息
 * @return
 */
function commitInfoChange(){
	if(!validCommitData()){
		return false;
	}
	document.getElementById("infoChangeForm").submit();
}

/**
 * 
 * @return
 */
function validCommitData(){
	return checkField() && checkQualityField();
}

/**
 * 
 * @return
 */
function getUrlVars(){
	var vars = [],hash;
	var url = window.location.href;
	var hashes = url.slice(url.indexOf('?')+1).split('&');
	
	for(var i = 0; i < hashes.length; i ++){
		hash = hashes[i].split('=');
		vars.push(hash[0]);
		vars[hash[0]] = hash[1];
	}
	return vars;
}


//下载填写说明
function downRegFile() {
	var basePath = document.getElementById("hiddenBasePath").value;
	var regForm = document.getElementById("regForm");
	
	if(null == regForm){
		regForm = document.createElement("form");
		regForm.id = "regForm";
		regForm.name = "regForm";
		regForm.style.display="none";
		document.body.appendChild(regForm);
		document.forms["regForm"].method="POST";
		document.forms["regForm"].action=basePath+"/register/downRegFile";
	}
	document.forms["regForm"].submit();
}